<form action="<?php echo $aUrl; ?>" method="post" name="adminForm">
<!-- form action="<?php echo $cUrl; ?>/ajaxfileupload" method="post" name="adminForm" enctype="multipart/form-data"" -->
<table cellspacing="0" cellpadding="0" border="0" width="100%"> 
	<tr> 
		<td valign="top"> 
			<table class="adminform"> 
				<tr> 
					<td> 
						<label for="post_title">文档标题</label> 
					</td> 
					<td> 
						<input type="text" name="posts[post_title]" class="inputbox" size="40" maxlength="255" value="<?php echo $model->post_title; ?>" /> 
					</td> 
					<td> 
						<label>文档状态</label> 
					</td> 
					<td> 
						<input type="radio" name="posts[post_status]" value="o" <?php if ($model->post_status == 'o') echo 'checked'; ?> /> 
						<label for="post_status0">开放浏览</label> 
						<input type="radio" name="posts[post_status]" value="c" <?php if ($model->post_status != 'o') echo 'checked'; ?> /> 
						<label for="post_status1">待审核</label> 
					</td> 
				</tr> 
				<tr> 
					<td> 
						<label>所属标签</label> 
					</td> 
					<td> 
						<input type="checkbox" name="posts[post_flags][]" value="h" <?php if (false !== strpos($model->post_flags, 'h')) echo 'checked'; ?> />
						<label for="post_flags0">头条</label>
						<input type="checkbox" name="posts[post_flags][]" value="c" <?php if (false !== strpos($model->post_flags, 'c')) echo 'checked'; ?> />
						<label for="post_flags1">推荐</label> 
						<input type="checkbox" name="posts[post_flags][]" value="j" <?php if (false !== strpos($model->post_flags, 'j')) echo 'checked'; ?> />
						<label for="post_flags2">跳转</label> 
					</td> 
					<td> 
						<label for="category_id">所属类别</label> 
					</td> 
					<td> 
						<select name="posts[category_id]" class="inputbox" size="1"> 
						<?php echo $categories; ?> 
						</select> 
					</td> 
				</tr> 
			</table> 
			<table class="adminform">
				<tr> 
					<td> 
					<?php echo $fckeditor; ?>
					</td> 
				</tr> 
			</table> 
		</td> 
		<td valign="top" width="320" style="padding: 7px 0 0 5px"> 
			<table width="100%" style="border: 1px dashed silver; padding: 5px; margin-bottom: 10px;"> 
				<tr> 
				<td> 
					<strong>状态</strong> 
				</td> 
				<td>已发布</td> 
			</tr> 
			<tr> 
				<td> 
					<strong>访问次数</strong> 
				</td> 
				<td>
					<input type="text" name="posts[access_count]" class="text_area" size="6" value="<?php echo $model->access_count; ?>" />	
					<label for="access_count">次</label>
				</td> 
			</tr> 
			<tr> 
				<td> 
					<strong>发表时间</strong> 
				</td> 
				<?php $week = array('天', '一', '二', '三', '四', '五', '六'); ?>
				<td>周<?php echo $week[date('w', strtotime($model->dt_created))]; ?>, <?php echo $model->dt_created; ?></td> 
			</tr>
			<tr> 
				<td> 
					<strong>最近一次修改时间</strong> 
				</td> 
				<td><?php if (CControllerConfig::getAction() == 'edit') echo '周', $week[date('w', strtotime($model->dt_modify))], ', '; ?> 
				<?php echo $model->dt_modify; ?></td>
			</tr> 
			</table> 
			<div id="content-pane" class="pane-sliders">
				<div class="panel">
					<h3 class="jpane-toggler title" id="detail-page">
						<span>缩略图</span>
					</h3>
					<div class="jpane-slider content">
					<table width="100%" class="paramlist admintable" cellspacing="1"> 
						<tr> 
							<td width="40%" class="paramlist_key">
								<span class="editlinktip">
									<label for="little_picture" class="hasTip" title="缩略图地址::">缩略图地址</label>
								</span>
							</td> 
							<td class="paramlist_value">
								<input type="file" id="little_picture" name="little_picture" class="text_area" size="25" value="" onchange="return ajaxFileUpload();" />
								<!-- input type="file" id="little_picture" name="little_picture" class="text_area" size="25" value="" / -->
								<input type="hidden" name="posts[little_picture]" value="<?php echo $model->little_picture; ?>" />
							</td>
						</tr> 
						<tr> 
							<td colspan="2" align="center"> 
								<img id="loading" style="display:none" src="<?php echo $adminPath; ?>/images/ajaxLoading.gif" />
								<img id="little_picture_img" style="display:<?php echo $model->little_picture != '' ? 'block' : 'none'; ?>" width="<?php echo $thumb_width; ?>" height="<?php echo $thumb_height; ?>" src="<?php echo $model->little_picture; ?>" />
							</td>
						</tr> 
					</table>
					</div>
				</div>
	
				<div class="panel">
					<h3 class="jpane-toggler-down title" id="params-page">
						<span>高级参数</span>
					</h3>
					<div class="jpane-slider content" style="height:0px;">
					<table width="100%" class="paramlist admintable" cellspacing="1"> 
						<tr> 
							<td width="40%" class="paramlist_key">
								<span class="editlinktip">
									<label for="post_url" class="hasTip" title="文档链接::">文档链接</label>
								</span>
							</td> 
							<td class="paramlist_value">
								<input type="text" name="posts[post_url]" class="text_area" size="25" value="<?php echo $model->post_url; ?>" />
							</td> 
						</tr> 
						<tr> 
							<td width="40%" class="paramlist_key">
								<span class="editlinktip">
									<label for="is_html" class="hasTip" title="生成静态页面::">生成静态页面</label>
								</span>
							</td> 
							<td class="paramlist_value">
								<input type="radio" name="posts[is_html]" value="n" <?php if ($model->is_html != 'y') echo 'checked'; ?> /> 
								<label for="is_html0">否</label> 
								<input type="radio" name="posts[is_html]" value="y" <?php if ($model->is_html == 'y') echo 'checked'; ?> /> 
								<label for="is_html1">是</label> 
							</td> 
						</tr> 
						<tr> 
							<td width="40%" class="paramlist_key">
								<span class="editlinktip">
									<label for="allow_comment" class="hasTip" title="允许评论::">允许评论</label>
								</span>
							</td> 
							<td class="paramlist_value">
								<input type="radio" name="posts[allow_comment]" value="n" <?php if ($model->allow_comment == 'n') echo 'checked'; ?> /> 
								<label for="allow_comment0">否</label> 
								<input type="radio" name="posts[allow_comment]" value="y" <?php if ($model->allow_comment != 'n') echo 'checked'; ?> /> 
								<label for="allow_comment1">是</label> 
							</td> 
						</tr> 
						<tr> 
							<td width="40%" class="paramlist_key">
								<span class="editlinktip">
									<label for="dt_created" class="hasTip" title="发表时间::">发表时间</label>
								</span>
							</td> 
							<td class="paramlist_value">
								<input type="text" name="posts[dt_created]" id="datepicker" class="inputbox" value="<?php echo $model->dt_created; ?>" />
							</td> 
						</tr> 
					</table>
					</div>
				</div>
				
				<div class="panel">
					<h3 class="jpane-toggler-down title" id="metadata-page">
						<span>资料检索信息</span>
					</h3>
					<div class="jpane-slider content" style="height:0px;">
					<table width="100%" class="paramlist admintable" cellspacing="1"> 
						<tr> 
							<td width="40%" class="paramlist_key">
								<span class="editlinktip">
									<label for="post_description" class="hasTip" title="内容摘要::">内容摘要</label>
								</span>
							</td> 
							<td class="paramlist_value">
								<textarea name="posts[post_description]" class="text_area" cols="30" rows="5"><?php echo $model->post_description; ?></textarea>
							</td> 
						</tr> 
						<tr> 
							<td width="40%" class="paramlist_key">
								<span class="editlinktip">
									<label for="post_keywords" class="hasTip" title="内容关键字::">内容关键字</label>
								</span>
							</td> 
							<td class="paramlist_value">
								<textarea name="posts[post_keywords]" class="text_area" cols="30" rows="5"><?php echo $model->post_keywords; ?></textarea>
							</td> 
						</tr> 
					</table>
					</div>
				</div>
			</div>			
		</td> 
	</tr> 
</table> 
<input type="hidden" name="id" value="<?php echo $model->post_id; ?>" />
<input type="hidden" name="do" value="" /> 
<div class="clr"></div>	
</form> 